﻿using System;
namespace Microsoft.Data.OData
{
    /// <summary>
    /// Class representing a resource collection in a workspace of a data service.
    /// </summary>
    public sealed class ODataResourceCollectionInfo : ODataAnnotatable
    {
        /// <summary>Gets or sets the URI representing the Unified Resource Locator (URL) to the collection.</summary>
        /// <returns>The URI representing the Unified Resource Locator (URL) to the collection.</returns>
        public Uri Url
        {
            get;
            set;
        }
        /// <summary>Gets or sets the name of the collection; this is the entity set name in JSON and the HREF in Atom.</summary>
        /// <returns>The name of the collection.</returns>
        /// <remarks>
        /// This property is required when reading and writing the JSON light format, but has no meaning in the Verbose JSON format.
        /// If present in ATOM, it will be used to populate the title element.
        /// </remarks>
        public string Name
        {
            get;
            set;
        }
    }
}
